package xin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author young
 * @since 2023年10月09日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_org_department")
@ApiModel(value = "TOrgDepartment对象", description = "")
public class TOrgDepartment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("name")
    private String name;

    @ApiModelProperty("简介")
    @TableField("intro")
    private String intro;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("部门经理对应员工表")
    @TableField("manager_id")
    private Long managerId;

    @ApiModelProperty("上级部门")
    @TableField("parent_id")
    private Long parentId;

    @TableField("path")
    private String path;

    @TableField("state")
    private Integer state;

    @TableField(exist = false)
    private List<TOrgDepartment> children;

    @TableField(exist = false)
    private String parentName;

    @TableField(exist = false)
    private String createUserName;


}
